package com.base.api.dto.selfAddress;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class SelfAddressApiAddDTO implements Serializable {
    @ApiModelProperty(value = "省")
    @NotBlank(message = "省份不能为空")
    private String province;

    @ApiModelProperty(value = "市")
    @NotBlank(message = "市不能为空")
    private String city;

    @ApiModelProperty(value = "区")
    @NotBlank(message = "区不能为空")
    private String district;

    @ApiModelProperty(value = "详细地址")
    @NotBlank(message = "详细地址不能为空")
    private String address;

    @ApiModelProperty(value = "用户id")
    @NotBlank(message = "用户id不能为空")
    private String userId;

    @ApiModelProperty(value = "收件人姓名")
    @NotBlank(message = "收件人姓名不能为空")
    private String name;

    @ApiModelProperty(value = "收件人手机号")
    @NotBlank(message = "收件人手机号不能为空")
    private String mobile;
}
